﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CE.Payment;

public partial class payment_kbank : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ddlMonth.Attributes.Add("onblur", "ShowValidationEffect('" + ddlMonth.ClientID + "','" + rfvMonth.ClientID + "');");

            //if (Request.Params["ref"] != null)
            //{
            //    KBank kPay = new KBank();
            //    kPay.Payment("10", "123");
            //}
            //else
            //{
            //    Response.Redirect("http://www.gluaygluay.com");
            //}
            lblTotalPremium.Text = "1 " + Resources.CarInsurance.Baht;
            lblMonthlyInstallment.Text = Resources.CarInsurance.Month;
        }

    }

    protected void ibtSubmit_Click(object sender, ImageClickEventArgs e)
    {
        KBank kPay = new KBank();
        kPay.Payment("1", "AXA1234",ddlMonth.Text);

    }
}
